/**
 * 商务合同管理路由
 */


import Main from '@/components/main'
import parentView from '@/components/parent-view'

const commerceContractRouter = {
  path: '/commerce-contract',
  name: 'commerce-contract',
  meta: {
    keepAlive: true,
    icon: '_shangwuhetongguanli',
    title: '商务合同管理',
    showAlways: true,
    access: ['CommerceContract']
  },
  component: Main,
  children: [
    {
      path: 'template_cc',
      name: 'template_cc',
      meta: {
        keepAlive: true,
        title: '合同模板管理',
        access: ['CommerceContractTemplate']
      },
      component: () => import('@/view/commerce-contract/template_cc/index.vue')
    },
    {
      path: 'examine_cc',
      name: 'examine_cc',
      meta: {
        keepAlive: true,
        title: '合同审批管理',
        access: ['CommerceContractExamine']
      },
      component: () => import('@/view/commerce-contract/examine_cc/index.vue')
    },
    {
      path: 'doc_cc',
      name: 'doc_cc',
      meta: {
        keepAlive: true,
        title: '合同附件管理',
        access: ['CommerceContractFile']
      },
      component: () => import('@/view/commerce-contract/file_cc/index.vue')
    }
  ]
}

export default commerceContractRouter;